<?php

namespace app\model;

class ShoppingCartProduct extends ShoppingCartProductBase
{
    public static function onBeforeWrite($model)
    {
        $model->price_total = $model->price_unit * $model->quantity;
    }
}
